// 封装的axios请求文件
import request from '@/utils/request' // 导入request.js中的request
// 获取频道文章列表
export const getSearchSuggestions = q => {
  return request({
    method: 'GET',
    url: '/v1_0/suggestion',
    params: {
      q
    }
  })
}
/**
 * 获取搜索结果
 */
export function getSearchResult (params) {
  return request({
    method: 'GET',
    url: '/v1_0/search',
    params
  })
}
